/**
 * Copyright (C) 2018-2019
 * All rights reserved, Designed By www.joolun.com
 * 注意：
 * 本软件为www.joolun.com开发研制，项目使用请保留此说明
 */
package com.ruoyi.mall.dubbo;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.mall.api.RemoteOrderItemService;
import com.ruoyi.mall.api.entity.OrderItem;
import com.ruoyi.mall.mapper.OrderItemMapper;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 商城订单详情
 *
 * @author www.joolun.com
 * @date 2019-09-10 15:31:40
 */
@Service
@DubboService
public class RemoteOrderItemServiceImpl extends ServiceImpl<OrderItemMapper, OrderItem> implements RemoteOrderItemService {

    @Override
    public List<OrderItem> listByOrderId(String id) {
        return super.list(Wrappers.<OrderItem>lambdaQuery().eq(OrderItem::getOrderId, id));
    }

    @Override
    public boolean saveBatch(List<OrderItem> listOrderItem) {
        return super.saveBatch(listOrderItem);
    }
}
